package com.item.service;

import com.item.pojo.Article;


import java.util.List;
import java.util.Map;

public interface ArticleService {

    List<Article> selectAll();

    Article selectById(Integer id);

    List<Article> selectByCollect();

    List<Article> selectByType(String type);

    Map<String, Object> pageList(Integer pageSize, Integer page, String title,String type);

    int update(Article article);

    int insert(Article article);

    int insertBatch(List<Article> articles);

    int delete(Integer id);

    int delBatch(List<Integer> id);
}
